﻿using ESRI.ArcGIS.Geometry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DGIS.Service.IService.ICoordService
{
    public interface ISpatialReferenceService
    {
        /// <summary>
        /// 创建高斯坐标系
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        ISpatialReference CreateSpatialReference(esriSRGeoCSType type);

        /// <summary>
        /// 创建大地坐标系
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        ISpatialReference CreateSpatialReference(esriSRProjCSType type);

        /// <summary>
        /// 根据投影内容创建空间参考
        /// </summary>
        /// <param name="prj"></param>
        /// <returns></returns>
        ISpatialReference CreateSpatialReference(string prj);

        /// <summary>
        /// 根据投影文件创建空间参考
        /// </summary>
        /// <param name="prjFilePath"></param>
        /// <returns></returns>
        ISpatialReference CreateSpatialReferenceFromPrjFile(string prjFilePath);
    }
}
